<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>    
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
    <!-- 헤더 페이지 -->
 <div id="top">
      <h1><a href="smsAction.do?mode=mainPage"><img src="images/logo.png" border="0" alt="logoImg" class="png"/></a></h1>
      <p id="userbox"><strong>${sessionScope.USER_NAME }님</strong><%-- &nbsp;| &nbsp;<c:choose><c:when test="${sessionScope.mvo.memberType =='Y'}"><a href="memberAction.do?mode=memberConfig">환경설정</a></c:when><c:otherwise><a href="memberAction.do?mode=changePassword">비밀번호변경</a></c:otherwise></c:choose>--%> 
      <%-- 
      &nbsp;| &nbsp;<a href="#"  onclick="javascript: logout()">로그아웃</a> <br />
      --%>
     <%--<small>마지막로그인: 2011년 4월 5일&nbsp;</small> --%>
      <span class="yellow" style="height: 19px; display:block;">
	      <c:choose>
	      	<c:when test="${sessionScope.lastProId==null || sessionScope.lastProId=='0'}">
	      		&nbsp;
	      	</c:when>
	      	<c:otherwise>
	      		기준 : ${sessionScope.proDayIndex } | ${sessionScope.proNm }
	      	</c:otherwise>
	      </c:choose>
	   </span>
      </p>
      <span class="clearFix">&nbsp;</span>
</div>      
<div style="text-align: center; height: 33px;">
 <c:choose>
	<c:when test="${sessionScope.lastProId==null || sessionScope.lastProId=='0'}">
		&nbsp;
	</c:when>
	<c:otherwise>
	
		<c:choose>
			<c:when test="${sessionScope.magamSession[0].state =='Y'}">
				<span class="procssApplyButton1" onclick="openMagam(0)" id="pb1"></span>
			</c:when>
			<c:otherwise>
				<span class="procssButton1" onclick="openMagam(0)"id="pb1"></span>
			</c:otherwise>
		</c:choose>
		<c:choose>
			<c:when test="${sessionScope.magamSession[1].state=='Y'}">
				<span class="procssApplyButton2" onclick="openMagam(1)" id="pb2"></span>
			</c:when>
			<c:otherwise>
				<span class="procssButton2" onclick="openMagam(1)" id="pb2"></span>
			</c:otherwise>
		</c:choose>
		<c:choose>
			<c:when test="${sessionScope.magamSession[2].state=='Y'}">
				<span class="procssApplyButton3" onclick="openMagam(2)" id="pb3"></span>
			</c:when>
			<c:otherwise>
				<span class="procssButton3" onclick="openMagam(2)" id="pb3"></span>
			</c:otherwise>
		</c:choose>
		<c:choose>
			<c:when test="${sessionScope.magamSession[3].state=='Y'}">
				<span class="procssApplyButton4" onclick="openMagam(3)" id="pb4"></span>
			</c:when>
			<c:otherwise>
				<span class="procssButton4" onclick="openMagam(3)" id="pb4"></span>
			</c:otherwise>
		</c:choose>
		<c:choose>
			<c:when test="${sessionScope.magamSession[4].state=='Y'}">
				<span class="procssApplyButton5" onclick="openMagam(4)" id="pb5"></span>
			</c:when>
			<c:otherwise>
				<span class="procssButton5" onclick="openMagam(4)" id="pb5"></span>
			</c:otherwise>
		</c:choose>
		<c:choose>
			<c:when test="${sessionScope.magamSession[5].state=='Y'}">
				<span class="procssApplyButton6" onclick="openMagam(5)" id="pb6"></span>
			</c:when>
			<c:otherwise>
				<span class="procssButton6" onclick="openMagam(5)" id="pb6"></span>
			</c:otherwise>
		</c:choose>
		<c:choose>
			<c:when test="${sessionScope.magamSession[6].state=='Y'}">
				<span class="procssApplyButton7" onclick="openMagam(6)" id="pb7"></span>
			</c:when>
			<c:otherwise>
				<span class="procssButton7" onclick="openMagam(6)" id="pb7"></span>
			</c:otherwise>
		</c:choose>

</c:otherwise>
</c:choose>
</div>
      <%--
      <div class="align-right" style=" height:40px;">
        <select name="num" id="num" class="selectBox" onchange="javascript: saveProId(this);">
		<c:if test="${fn:length(mplist)== 0}">
			<option value="0" selected>-----------------------</option>
		</c:if>
		<c:forEach  var="proIdList" items="${sessionScope.mplist}" varStatus="status">
			<option <c:if test="${proIdList.pro_id == sessionScope.lastProId }">selected</c:if> value="${proIdList.pro_id }">순번 ${proIdList.pro_id } , ${proIdList.pro_nm }</option>
		</c:forEach>
	</select>
      </div>
       --%>
	 <!--form action="" method="get" name="form1" id="form1">
      <fieldset>
      <legend>Search</legend>
        <label id="searchbox">
        <input type="text" name="s" id="s" />
        </label>
        <input class="hidden" type="submit" name="Submit" value="Search" />
      </fieldset>
      </form-->
      <span class="clearFix">&nbsp;</span>
